'use strict';
const mongoose = require('mongoose');

exports.fields = {
  nickName: 'string',
  phoneNumber: 'mobile',
  avatarUrl: 'string',
  unionid: 'string',
  session: 'string',
  openid: 'string',
};

exports.schema = {
  lastLoginAt: {
    type: mongoose.Schema.Types.Date,
  },
};

exports.zhName = '微信用户';

exports.autoRestful = false;
